﻿using System;

namespace AsyncFileLogger
{
    class Program
    {
        const string fillText = " asdkfjklajsrtlekjszdfhslktrjheklshsdklfgvsdk;ljfl;ktjerklgfdklsalsjdlkf;jesrkotjs;ldfk;lsdkjgousdf98iuewroipt5uj34otjgsldkfjoidstuo4i53wjtglrk;aekjg;lskdfjg;jkajsdf;l";

        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            AsyncFileLogger logger = new AsyncFileLogger("test.log");
            logger.WriteAsync("");
            logger.WriteAsync(DateTime.Now.ToString());

            for (int i = 10; i > 0; i--)
                logger.WriteAsync(DateTime.Now.Ticks.ToString() + fillText + fillText + fillText + fillText);
            logger.Close();
        }
    }
}
